﻿@model IEnumerable<CMS.BL.Entity.tbl_Settings>
@foreach (var item in Model)
{
    <div>
        <div class="inputContainer">
        <label for="@item.SettingID">@item.SE_Variable</label>
        @switch (item.SE_Type)
        {
            case (int)CMS.BL.SettingsType.String:
                <input data-val="true" data-val-required="Cannot be empty" id="@item.SettingID" name="@item.SE_Variable" type="text" value="@item.SE_Value" />
                <span class="field-validation-valid" data-valmsg-for="@item.SE_Variable" data-valmsg-replace="true"></span>
                break;
            case (int)CMS.BL.SettingsType.Bool:
                @Html.CheckBox(item.SE_Variable, item.SE_Value.AsBool())
                break;
            case (int)CMS.BL.SettingsType.Enum:
                <select id="@item.SettingID" name="@item.SE_Variable"></select>
                break;
        }
        </div>
        <span class="description">@item.SE_Description</span>
    </div>
}